<script lang="ts" setup>
import useStore from '@/store/index'
const { home } = useStore()

// 获取banner列表
home.getBannerList()
</script>
<template>
  <div class="home-banner">
    <!-- 轮播图 -->
    <XtxCarousel
      :list="home.bannerList"
      autoplay
      isShowDots
      :interval="2000"
    ></XtxCarousel>
  </div>
</template>

<style scoped lang="less">
// vue3中 less 的深度选择器: :deep(选择器) { 样式 }
// vue3中 scss 的深度选择器: ::v-deep(选择器) { 样式 }

:deep(.carousel-btn.prev) {
  left: 270px !important;
}
:deep(.carousel-indicator) {
  padding-left: 270px !important;
}
.home-banner {
  width: 1240px;
  height: 500px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 98;
  background-color: pink;
}
</style>
